home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 July / EnigmA AMIGA RUN 20 (1997)(G.R. Edizioni)(IT)[!][issue 1997-07 & 08][EAR-CD IV].iso / lightwave / lwmlist / 96.lightwave-0108 / 000013_djmccoy@pacificnet.net_Mon Jan 8 00:44:50 EST 1996.msg < prev    next >
Internet Message Format  |  1996-02-03  |  3KB

  1. Return-Path: <djmccoy@pacificnet.net>
  2. Received: from north.pacificnet.net by garcia.com (5.x/SMI-SVR4)
  3.     id AA13420; Mon, 8 Jan 1996 00:44:46 -0500
  4. Received: from mcbones (pm3-25.pacificnet.net [206.101.8.215]) by north.pacificnet.net (8.6.11/8.6.11) with SMTP id VAA14197 for <lightwave@garcia.com>; Sun, 7 Jan 1996 21:41:48 -0800
  5. Message-Id: <2.2.32.19960108054633.0071efdc@pacificnet.net>
  6. X-Sender: djmccoy@pacificnet.net
  7. X-Mailer: Windows Eudora Pro Version 2.2 (32)
  8. Mime-Version: 1.0
  9. Content-Type: text/plain; charset="us-ascii"
  10. Date: Sun, 07 Jan 1996 21:46:33 -0800
  11. To: lightwave@garcia.com
  12. From: "Daniel J. McCoy" <djmccoy@pacificnet.net>
  13. Subject: Re: How exactly do I use BML?
  14. content-length: 2665
  15. Status: RO
  16. X-Status: 
  17.  
  18. At 11:19 PM 1/7/96 -0500, Andrew Hofman wrote this:
  19. >I understand that BML is a scripting language. Having banged out some
  20. >rudimentary Arexx scripts, I know the power of this. What I'd like are some
  21. >more details on exactly how BML is used in a real-world situation. How does
  22. >it compare in use to Arexx? What are the steps involved in compiling a script?
  23.  
  24. Basically, what you know about ARexx can be applied to BML.  Until BML is
  25. released, however, all you can do is run the compiled scripts unless you've
  26. been beta testing in which case you can run the scripts via the BML plug-in
  27. which then interprets the scripts and runs them.  But if you get the
  28. compiler and run-time version, you create your scripts , compile them via
  29. command line (bmc script_to_compile).  If there are any errors, the compiler
  30. will tell you.  Then use BML-RT to run them.
  31.  
  32. Language wise, if you've gotten into ARexx, chances are, getting into BML is
  33. not that much harder.  Robert popped a little bit of ARexx into BML.  To see
  34. what it all looks like, take a gander and the *.bml files on Robert Hood's
  35. ftp site.  
  36.  
  37. >Let's say I wanted to write a plugin for Alpha NT that would randomly clone
  38. >an object all over the place. It would have controls for distance on the X,
  39. >Y and Z axis, as well as density and maybe size variations. No, I'm not
  40. >trying to get someone to write this for free. It just struck me as a good
  41. >general example.
  42.  
  43. If you can do it in ARexx, you can do it in BML.
  44.  
  45. >Also, what is the difference between .bml and .bmc files? How do I use them
  46. >in LW? Can either type simply be installed as a plugin or must they be
  47. >compiled first?
  48.  
  49. *.BML files are the text script.  *.BMC is the compiled script.  You execute
  50. these scripts either via BML or BML-RT in the CUSTOM drop-down list (after
  51. adding either via Add Plug-In).  BML or BML-RT will then present you with a
  52. file requester to select a *.BML or *.BMC file depending on if you selected
  53. BML (which handles *.BML files) or BML-RT (which handles *.BMC files).  BML
  54. will need to compile and then run the script while BML-RT just goes right at
  55. it.  By creating a Custom Command List, you can execute BML or BMC scripts
  56. without having to go through the BML/BML-RT file requester.  Oddly, Modeler
  57. puts these types of "commands" at the top of the list over the "normal"
  58. plugins.  I kinda wish they'd be sorted in with the rest.  :)
  59.  
  60. BML is still being worked on and something can always change.  Take Robert
  61. Hood's word for it if you see his response.  He knows more than anyone else
  62. about BML.  :)
  63.  
  64. Have fun,
  65. Dan
  66. --
  67. Daniel J. McCoy - djmccoy@pacificnet.com or dan@acti.com
  68. <A HREF="http://www.pacificnet.com/~djmccoy/></A>